<html lang="zh-CN">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>手机号注册</title>
</head>
<body>
<div class="box">
  <h2>手机号注册</h2>
  <input placeholder="请输入手机号" />
  <div class="input-row">
    <input placeholder="请输入验证码" />
    <button onclick="alert('验证码：123456')">发送验证码</button>
  </div>
  <input placeholder="请输入密码" />
  <!-- 只改这里：真正提交函数 -->
  <button class="reg-btn" onclick="handleReg()">注册</button>
  <div class="link">已有账号？<a href="log.html">立即登录</a></div>
</div>

<script>
  // 只加这段：存标记 + 跳转
  function handleReg() {
    // 任意输入即可注册（你后面想加校验在这里加）
    localStorage.setItem('isLogin', '1');
    location.href = 'newuser.html';
  }
</script>
</body>

<style>
  @import url("register.css");
</style>
</html>